<%@ page contentType="text/html; charset=UTF-8" language="java" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@taglib prefix="s" uri="/struts-tags"%>
<html>
  <head>
    <title>所有的权限</title>
    <script type="text/javascript" src="/ItsOAsystem/system/permission/js/pms.js"></script>
    <link href="/ItsOAsystem/system/permission/css/pms.css" rel="stylesheet" type="text/css"/>
  </head>
  
  <body>
    <div>
    	<s:if test='btnIds.indexOf("add")>-1'><input type="button" id="showWin" name ="showWin" value="新增" onclick="showAddWin()"/></s:if>
  		<s:if test='btnIds.indexOf("del")>-1'><input type="button" id="del" name ="del" value="删除" onclick="delPms()"/></s:if>
  	</div>
  	<hr/>
   <table id = "pmstable" border="1" align="center" cellspacing="0" width="100%">
   	<tr>
   		<td width="5%"><s:checkbox id="checkall" name="checkall" theme="simple" onclick="checkAll(this)"/></td>
   		<td width="5%">序号</td><td width="10%">所属模块</td><td width="15%">权限代码</td>
   		<td width="20%">权限名称</td><td width="50%">URL</td>
   	</tr>
   	<s:iterator value="pmsList">
   		<tr onclick="selectRow(${id})">
   			<td><s:checkbox id="chk" name="chk" theme="simple" /></td>
   			<td><s:property value="id" /></td>
   			<td><s:property value="module.name" /></td>
   			<td><s:property value="code"/></td>
   			<td><s:property value="name"/></td>
   			<td><s:property value="url"/></td>
   		</tr>
   	</s:iterator>
   	<tr>
			<td colspan="100" align="center"><jsp:include page="/common/turnPage.jsp"/><br></td>
	</tr>
   </table>
   
  </body>
</html>
